package com.esgpro.esg_api.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor
@TableName("esg_message")
@ApiModel("ESG评分类")
public class ESGMessage {
    @ApiModelProperty("索引")
    private Integer id;
    @ApiModelProperty("环境分")
    @TableField("e_point")
    private int EPoint;
    @ApiModelProperty("社会分")
    @TableField("s_point")
    private int SPoint;
    @ApiModelProperty("公司治理分")
    @TableField("g_point")
    private int GPoint;
    @ApiModelProperty("esg总评分")
    @TableField("esg_point")
    private int ESGPoint;
    @ApiModelProperty("数据索引")
    private int data_id;
    @ApiModelProperty("数据")
    @TableField(exist = false)
    private DataContent data;
    @ApiModelProperty("得分日期")
    private String date;

    public ESGMessage(Integer id, int EPoint, int SPoint, int GPoint, int ESGPoint, int data_id, String date) {
        this.id = id;
        this.EPoint = EPoint;
        this.SPoint = SPoint;
        this.GPoint = GPoint;
        this.ESGPoint = ESGPoint;
        this.data_id = data_id;
        this.date = date;
    }

    public ESGMessage(Integer id, int EPoint, int SPoint, int GPoint, int ESGPoint, DataContent data, String date) {
        this.id = id;
        this.EPoint = EPoint;
        this.SPoint = SPoint;
        this.GPoint = GPoint;
        this.ESGPoint = ESGPoint;
        this.data = data;
        this.date = date;
    }
}
